Skip to content

Conversation

@isoos
Copy link
Collaborator

@isoos isoos commented Oct 17, 2024

  • Refactored initialization, as we can be more efficient if the construction of the index does not assume that entries may be removed.
  • Using int keys in the token map is slightly more efficient, but most of the gain is coming from using List<double> instead of Map.
  • The change yields about 10% of time improvements in the benchmark.
  • Added a small benchmark tool that can be used in the future for similar local checks.

@isoos isoos requested a review from jonasfj October 17, 2024 08:01
@isoos isoos merged commit 61e2c75 into dart-lang:master Oct 17, 2024
32 checks passed
@isoos isoos deleted the token-index branch October 17, 2024 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants